<template>
  <div>
    <h1>详情</h1>
    <div class="aaa">
      <p>{{ result.productInfo2 }}</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      result: {},
    };
  },
  created() {
    // console.log(this.$route.params);
    let { productid } = this.$route.params;
    fetch(`http://chst.vip:1234/api/getmoneyctrlproduct?productid=${productid}`)
      .then((body) => body.json())
      .then((res) => {
        // console.log(res);
        this.result = res.result[0];
      });
  },
};
</script>

<style scoped>
.aaa {
  width: 500px;
}
</style>
